/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.stv.dpds_klient;

import java.awt.Point;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Martin Strouhal
 */
public class Player {
    
    private Point souradnice = new Point(0, 0);
    private String name;
    private int id;

    public Player(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public int getId() {
        return id;
    }
    
    public void zmenPozici(Point p){
        souradnice = p;
        vypisPozici();
    }
    
    public void vypisPozici(){
        Logger.getGlobal().log(Level.ALL, "Hráč " + name + " se nachází na: x=" + souradnice.x + ";y=" + souradnice.y);
    }
}
